/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: #007bff;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0056b3;
}

/* 导航栏样式 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
}

.nav-links {
  display: flex;
  justify-content: space-around;
  width: 30%;
}

.nav-links a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007bff;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px;
  transition: all 0.3s ease;
}

/* 页面容器样式 */
#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page {
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 首页样式 */
.home-page h1 {
  text-align: center;
  margin-bottom: 1rem;
}

.home-page > p {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #666;
}

.features {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}

.feature {
  flex: 1;
  background: white;
  padding: 1.5rem;
  margin: 0 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.feature h3 {
  color: #007bff;
  margin-bottom: 1rem;
}

.cta {
  text-align: center;
  margin-top: 2rem;
}

/* 关于页面样式 */
.about-content {
  display: flex;
  margin: 2rem 0;
}

.about-image {
  flex: 1;
  margin-right: 2rem;
}

.placeholder-image {
  background-color: #007bff;
  color: white;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 8px;
}

.about-text {
  flex: 2;
}

.about-text p {
  margin-bottom: 1rem;
}

.team {
  margin-top: 3rem;
}

.team h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.team-members {
  display: flex;
  justify-content: space-around;
}

.member {
  text-align: center;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 30%;
}

.member-avatar {
  width: 100px;
  height: 100px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

/* 联系页面样式 */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-right: 2rem;
  margin-bottom: 2rem;
}

.contact-form, .success-message {
  flex: 2;
  min-width: 300px;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
  .nav-links {
    width: 50%;
  }
}

@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .nav-links {
    position: absolute;
    right: 0;
    height: 92vh;
    top: 8vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links li {
    opacity: 0;
    margin: 1.5rem 0;
  }
  
  .burger {
    display: block;
  }
  
  .nav-active {
    transform: translateX(0%);
  }
  
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .toggle .line2 {
    opacity: 0;
  }
  
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .features, .about-content, .team-members {
    flex-direction: column;
  }
  
  .feature, .member {
    width: 100%;
    margin: 1rem 0;
  }
  
  .about-image {
    margin-right: 0;
    margin-bottom: 2rem;
  }
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}